package com.njbw.user.designPattern.filterPattern;

/**
 * 字数过滤器
 */
public class WordCountArticleFilter extends BaseArticleFilter{

    @Override
    public boolean doFilter(ArticleContext articleContext) {
        Long wordCount = articleContext.getArticle().getWordCount();
        return wordCount > 10;
    }
}
